
from django.contrib import admin
from .models import *

@admin.register(ActiveImage)
class ActiveImageAdmin(admin.ModelAdmin):

    # 每页显示数据
    list_per_page = 10
    # 显示列
    list_display = ["id","is_active","active_name","active_img"]
    # 过滤器
    list_filter = ["is_active"]
    # 搜索框
    search_fields = ["active_name"]